<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>scale图片</title>

    <style>

        .container{
            width: 300px;
            height: 300px;
            
        }

        img{

        }

    </style>
</head>
<body>
    <div class="container">
        <img src="" alt="图片">
    </div>
</body>
</html>